package com.ruoyi.house_sale.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购买房产对象 BuyHouse
 *
 * @author ruoyi
 * @date 2022-04-08
 */
public class BuyHouse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private String custname;
    private BigDecimal commisionPercent;
    private BigDecimal commisionMoney;
    private BigDecimal commisionpaid;
    private String psname;
    private String housename;
    /** 编号 */
    private Long buyid;

    /** 客户名称（管理客户资料表） */
    @Excel(name = "客户名称", readConverterExp = "管=理客户资料表")
    private Long custid;

    /** 房产编号（关联房产资料表） */
    @Excel(name = "房产编号", readConverterExp = "关=联房产资料表")
    private Long hourseid;

    /** 付款方案编号（关联付款方案表） */
    @Excel(name = "付款方案编号", readConverterExp = "关=联付款方案表")
    private Long psid;

    /** 房产办理进程序号(关联办理进度表主键） */
    @Excel(name = "房产办理进程序号(关联办理进度表主键）")
    private Long processid;

    /** 办理进程名称 */
    @Excel(name = "办理进程名称")
    private String processname;

    /** 优惠方案（关联优惠方案表） */
    @Excel(name = "优惠方案", readConverterExp = "关=联优惠方案表")
    private Long dicountid;

    /** 成交单价 */
    @Excel(name = "成交单价")
    private BigDecimal unitprice;

    /** 购房总款 */
    @Excel(name = "购房总款")
    private BigDecimal totalmoney;

    /** 按揭银行 */
    @Excel(name = "按揭银行")
    private String bankid;

    /** 首期款 */
    @Excel(name = "首期款")
    private BigDecimal firstmoney;

    /** 按揭金额 */
    @Excel(name = "按揭金额")
    private BigDecimal bankmoney;

    /** 按揭利息 */
    @Excel(name = "按揭利息")
    private BigDecimal bankaccrual;

    /** 按揭年数 */
    @Excel(name = "按揭年数")
    private Long bankyear;

    /** 按揭成数% */
    @Excel(name = "按揭成数%")
    private BigDecimal bankpercent;

    /** 按揭律师 */
    @Excel(name = "按揭律师")
    private String lawyer;

    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buytime;

    /** 业务员 */
    @Excel(name = "业务员")
    private String saleperson;

    /** 操作人(session值) */
    @Excel(name = "操作人(session值)")
    private String userid;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date oprtime;

    /** 有效	是否有效（有效，作废） */
    @Excel(name = "有效	是否有效", readConverterExp = "有=效，作废")
    private String invalid;

    /** 买房	操作类别(买房，换房，退房) */
    @Excel(name = "买房	操作类别(买房，换房，退房)")
    private String oprtype;

    /** 原定房产id */
    private Long hourseid2;

    /** 原定房产 */
    @Excel(name = "原定房产", readConverterExp = "关联房产资料表")
    private String housename2;

    /** 签约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signtime;

    /** 银行到账时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "银行到账时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date banktime;

    /** 现金金额 */
    @Excel(name = "现金金额")
    private BigDecimal cashmoney;

    /** 签约单价 */
    @Excel(name = "签约单价")
    private BigDecimal signunitprice;

    /** 装修单价 */
    @Excel(name = "装修单价")
    private BigDecimal fitmentunitprice;

    /** 签约总金额 */
    @Excel(name = "签约总金额")
    private BigDecimal signtotalprice;

    /** 装修总金额 */
    @Excel(name = "装修总金额")
    private BigDecimal fitmenttotalprice;

    /** 装修首付款 */
    @Excel(name = "装修首付款")
    private BigDecimal fitmentfirstprice;

    /** 装修尾款 */
    @Excel(name = "装修尾款")
    private BigDecimal fitmentlastprice;


    public BigDecimal getCommisionPercent() {
        return commisionPercent;
    }

    public void setCommisionPercent(BigDecimal commisionPercent) {
        this.commisionPercent = commisionPercent;
    }

    public BigDecimal getCommisionMoney() {
        return commisionMoney;
    }

    public void setCommisionMoney(BigDecimal commisionMoney) {
        this.commisionMoney = commisionMoney;
    }

    public BigDecimal getCommisionpaid() {
        return commisionpaid;
    }

    public void setCommisionpaid(BigDecimal commisionpaid) {
        this.commisionpaid = commisionpaid;
    }
    public String getHousename2() {
        return housename2;
    }

    public void setHousename2(String housename2) {
        this.housename2 = housename2;
    }
    public String getPsname() {
        return psname;
    }

    public void setPsname(String psname) {
        this.psname = psname;
    }

    public String getCustname() {
        return custname;
    }

    public void setCustname(String custname) {
        this.custname = custname;
    }

    public String getHousename() {
        return housename;
    }

    public void setHousename(String housename) {
        this.housename = housename;
    }

    public void setBuyid(Long buyid)
    {
        this.buyid = buyid;
    }

    public Long getBuyid()
    {
        return buyid;
    }
    public void setCustid(Long custid)
    {
        this.custid = custid;
    }

    public Long getCustid()
    {
        return custid;
    }
    public void setHourseid(Long hourseid)
    {
        this.hourseid = hourseid;
    }

    public Long getHourseid()
    {
        return hourseid;
    }
    public void setPsid(Long psid)
    {
        this.psid = psid;
    }

    public Long getPsid()
    {
        return psid;
    }
    public void setProcessid(Long processid)
    {
        this.processid = processid;
    }

    public Long getProcessid()
    {
        return processid;
    }
    public void setProcessname(String processname)
    {
        this.processname = processname;
    }

    public String getProcessname()
    {
        return processname;
    }
    public void setDicountid(Long dicountid)
    {
        this.dicountid = dicountid;
    }

    public Long getDicountid()
    {
        return dicountid;
    }
    public void setUnitprice(BigDecimal unitprice)
    {
        this.unitprice = unitprice;
    }

    public BigDecimal getUnitprice()
    {
        return unitprice;
    }
    public void setTotalmoney(BigDecimal totalmoney)
    {
        this.totalmoney = totalmoney;
    }

    public BigDecimal getTotalmoney()
    {
        return totalmoney;
    }
    public void setBankid(String bankid)
    {
        this.bankid = bankid;
    }

    public String getBankid()
    {
        return bankid;
    }
    public void setFirstmoney(BigDecimal firstmoney)
    {
        this.firstmoney = firstmoney;
    }

    public BigDecimal getFirstmoney()
    {
        return firstmoney;
    }
    public void setBankmoney(BigDecimal bankmoney)
    {
        this.bankmoney = bankmoney;
    }

    public BigDecimal getBankmoney()
    {
        return bankmoney;
    }
    public void setBankaccrual(BigDecimal bankaccrual)
    {
        this.bankaccrual = bankaccrual;
    }

    public BigDecimal getBankaccrual()
    {
        return bankaccrual;
    }
    public void setBankyear(Long bankyear)
    {
        this.bankyear = bankyear;
    }

    public Long getBankyear()
    {
        return bankyear;
    }
    public void setBankpercent(BigDecimal bankpercent)
    {
        this.bankpercent = bankpercent;
    }

    public BigDecimal getBankpercent()
    {
        return bankpercent;
    }
    public void setLawyer(String lawyer)
    {
        this.lawyer = lawyer;
    }

    public String getLawyer()
    {
        return lawyer;
    }
    public void setBuytime(Date buytime)
    {
        this.buytime = buytime;
    }

    public Date getBuytime()
    {
        return buytime;
    }
    public void setSaleperson(String saleperson)
    {
        this.saleperson = saleperson;
    }

    public String getSaleperson()
    {
        return saleperson;
    }
    public void setUserid(String userid)
    {
        this.userid = userid;
    }

    public String getUserid()
    {
        return userid;
    }
    public void setOprtime(Date oprtime)
    {
        this.oprtime = oprtime;
    }

    public Date getOprtime()
    {
        return oprtime;
    }
    public void setInvalid(String invalid)
    {
        this.invalid = invalid;
    }

    public String getInvalid()
    {
        return invalid;
    }
    public void setOprtype(String oprtype)
    {
        this.oprtype = oprtype;
    }

    public String getOprtype()
    {
        return oprtype;
    }
    public void setHourseid2(Long hourseid2)
    {
        this.hourseid2 = hourseid2;
    }

    public Long getHourseid2()
    {
        return hourseid2;
    }
    public void setSigntime(Date signtime)
    {
        this.signtime = signtime;
    }

    public Date getSigntime()
    {
        return signtime;
    }
    public void setBanktime(Date banktime)
    {
        this.banktime = banktime;
    }

    public Date getBanktime()
    {
        return banktime;
    }
    public void setCashmoney(BigDecimal cashmoney)
    {
        this.cashmoney = cashmoney;
    }

    public BigDecimal getCashmoney()
    {
        return cashmoney;
    }
    public void setSignunitprice(BigDecimal signunitprice)
    {
        this.signunitprice = signunitprice;
    }

    public BigDecimal getSignunitprice()
    {
        return signunitprice;
    }
    public void setFitmentunitprice(BigDecimal fitmentunitprice)
    {
        this.fitmentunitprice = fitmentunitprice;
    }

    public BigDecimal getFitmentunitprice()
    {
        return fitmentunitprice;
    }
    public void setSigntotalprice(BigDecimal signtotalprice)
    {
        this.signtotalprice = signtotalprice;
    }

    public BigDecimal getSigntotalprice()
    {
        return signtotalprice;
    }
    public void setFitmenttotalprice(BigDecimal fitmenttotalprice)
    {
        this.fitmenttotalprice = fitmenttotalprice;
    }

    public BigDecimal getFitmenttotalprice()
    {
        return fitmenttotalprice;
    }
    public void setFitmentfirstprice(BigDecimal fitmentfirstprice)
    {
        this.fitmentfirstprice = fitmentfirstprice;
    }

    public BigDecimal getFitmentfirstprice()
    {
        return fitmentfirstprice;
    }
    public void setFitmentlastprice(BigDecimal fitmentlastprice)
    {
        this.fitmentlastprice = fitmentlastprice;
    }

    public BigDecimal getFitmentlastprice()
    {
        return fitmentlastprice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("commisionPercent", getCommisionPercent())
                .append("commisionMoney", getCommisionMoney())
                .append("commisionpaid", getCommisionpaid())
                .append("custname", getCustname())
                .append("psname", getPsname())
                .append("housename", getHousename())
                .append("buyid", getBuyid())
                .append("custid", getCustid())
                .append("hourseid", getHourseid())
                .append("psid", getPsid())
                .append("processid", getProcessid())
                .append("processname", getProcessname())
                .append("dicountid", getDicountid())
                .append("unitprice", getUnitprice())
                .append("totalmoney", getTotalmoney())
                .append("bankid", getBankid())
                .append("firstmoney", getFirstmoney())
                .append("bankmoney", getBankmoney())
                .append("bankaccrual", getBankaccrual())
                .append("bankyear", getBankyear())
                .append("bankpercent", getBankpercent())
                .append("lawyer", getLawyer())
                .append("buytime", getBuytime())
                .append("saleperson", getSaleperson())
                .append("userid", getUserid())
                .append("oprtime", getOprtime())
                .append("invalid", getInvalid())
                .append("oprtype", getOprtype())
                .append("hourseid2", getHourseid2())
                .append("signtime", getSigntime())
                .append("banktime", getBanktime())
                .append("cashmoney", getCashmoney())
                .append("signunitprice", getSignunitprice())
                .append("fitmentunitprice", getFitmentunitprice())
                .append("signtotalprice", getSigntotalprice())
                .append("fitmenttotalprice", getFitmenttotalprice())
                .append("fitmentfirstprice", getFitmentfirstprice())
                .append("fitmentlastprice", getFitmentlastprice())
                .toString();
    }
}
